import '../bloc.dart';
import 'package:meta/meta.dart';

/// 可以对所有的bloc进行控制，bloc的总代理
class BlocDelegate {
  @mustCallSuper
  void onEvent(Bloc bloc, Object event) => null;

  @mustCallSuper
  void onTransition(Bloc bloc, Transition transition) => null;

  @mustCallSuper
  void onError(Bloc bloc, Object error, StackTrace stacktrace) => null;
}
